package dwz.cms.article.common;

import java.util.HashMap;
import java.util.Map;


import dwz.cms.article.util.ftp.FTPHost;

public class Constants {
	// 该项目的context上下文名字

	public static String PROJECT_CONTEXT_NAME = "marketing";

	// 将类名和全限定名中存入application范围内的key值

	public static String ClASSNAMEMAP_ATTRIBUTE_NAME = "classMapAttr";

	// 菜单存入application的key值

	public static String MENU_ALL_LIST = "menulist";

	// URL映射存入Map中的Key值

	public static String URLMAPING_NAME = "uriMapping";

	// 菜单根目录的parentid的值

	public static String MENU_ROOT_PARENTID = "0";

	// 用于将用户存放在Session中的key值

	public static String USER_ATTR_NAME = "user";

	// 允许访问的后缀名,用&分开
	public static String PERMISSION_URL_SUFFIX = "css&js&gif&jpg&png";

	// 得到请求的Servlet Path 的request的Attribute Name
	public static final String INCLUDE_SERVLET_PATH = "com.ibm.websphere.servlet.uri_non_decoded";

	// 号码分隔符

	public static final String NUMBER_SPLIT = ",";

	// 发送对象姓名分隔符
	public static final String SENDNAME_SPLIT = "[name]";

	// 商信通网址
	public static final String BZSMS_ADRESS = "www.1183300.com";

	// 商信通发送端口号
	public static final int BZSMS_PORT = 9001;

	// 商信通接收端口号
	public static final int BZSMS_REPORT = 9100;

	// 实时最大发送短信数
	public static final int SEND_ATONCE_MAX = 500;

	// 定时最大发送短信数
	public static final int SEND_ATTime_MAX = 500;

	// 实时最大接收短信数
	public static final int RECEIVE_ATONCE_MAX = 500;

	// 短信发送间隔（毫秒）

	public static final int SMS_INTERVAL = 50;

	// 允许从excel中导入的最大条数

	public static final int EXCEL_IMPORT_MAX = 11000;

	/** ************我是分割线***********CMS******************jmu*********** */
	// 设置文章过期间隔 单位可以是年 月 日其中的一个
	public static final int EXPIRE_DURATION = 3;
	// 生成静态文章页面的扩展名

	public static final String EXT_HTM = ".html";
	// 列表页最大记录条数

	public static final Integer pageSize = 25;
	// 默认文章标题
	public static final String DEFAULT_TITLE = "<无标题>";

	public static String CMS_STATIC_ROOT = "cmsback/";
	// 动态门户地址
	public static final String JSEEA_DYNAMIC_ADDRESS = "http://127.0.0.1:8088/jspeer/";
	// 静态门户地址
	// public static final String JSEEA_HALF_STATIC_ADDRESS
	// ="http://202.102.123.239:8080/eportal/";
	// public static final FTPHost[] JSEEA_STATIC_FTP_HOSTS = { new FTPHost(
	// "202.102.123.239", 21, "city", "city", "/") };
	public static String JSEEA_HALF_STATIC_ADDRESS = "http://127.0.0.1:8088/";// today
	// public static String JSEEA_HALF_STATIC_ADDRESS =
	// "http://202.102.117.62:8080/jseea/";// today

	// public static String JSEEA_HALF_STATIC_ADDRESS =
	// "http://192.168.100.6:8080/";
	public static final FTPHost[] JSEEA_STATIC_FTP_HOSTS = {
			new FTPHost("127.0.0.1",21,"Yating","TYT0922","/bea/www"),
			// // new FTPHost("192.168.100.10", 21, "syncuser", "8743cc!@",
			// // "/bea/www")};
			// new FTPHost("127.0.0.1", 21, "syncuser", "8743cc!@", "/bea/www"),
			//// new FTPHost("192.168.100.3", 21, "syncuser", "8743cc!@",
			// "/bea/www"),
			//// new FTPHost("192.168.100.6", 21, "syncuser", "8743cc!@",
			// "/bea/www"),
			//// new FTPHost("192.168.100.7", 21, "syncuser", "8743cc!@",
			// "/bea/www"),
			//// new FTPHost("192.168.100.21", 21, "syncuser", "8743cc!@",
			//// "/bea/www"),
			//// new FTPHost("192.168.100.22", 21, "syncuser", "8743cc!@",
			//// "/bea/www"),
			//// new FTPHost("192.168.100.23", 21, "syncuser", "8743cc!@",
			//// "/bea/www"),
			//// new FTPHost("192.168.100.24", 21, "syncuser", "8743cc!@",
			//// "/bea/www")

			//new FTPHost("192.168.100.2", 21, "syncuser", "8743cc!@", "/bea/www"),
			
			// new FTPHost("192.168.100.25", 21, "syncuser", "8743cc!@",
			// "/bea/www")
	};

	public static final Map<String, Integer> AttachmentsEXT = new HashMap<String, Integer>();
	static {
		// File f=new File("1");
		// System.out.println("getAbsolutePath"+f.getAbsolutePath());
		// CMS_STATIC_ROOT=f.getAbsolutePath()+"/Static/";
		AttachmentsEXT.put("doc", 0);
		AttachmentsEXT.put("xls", 1);
		AttachmentsEXT.put("rar", 2);
		AttachmentsEXT.put("pdf", 3);
		AttachmentsEXT.put("rtf", 4);
		AttachmentsEXT.put("ppt", 5);
		AttachmentsEXT.put("img", 6);
		AttachmentsEXT.put("other", 7);
	}
	/** *********我是分割线**************CMS************jmu********** */
}
